
/**
 * Write a description of class Person here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Player
{
    private String name;
    private int health;
    private Weapon weapon = new Weapon(hit, dam);
    private int maxHealth;
    private int potionCount;
    private boolean alive;
    

    public Player (String str, int i, Weapon obj) {
        this.name = str;
        this.health = i;
        this.weapon = obj;
        potionCount = 0;
        alive = true;
    }

    public String getName() {
        return name;
    }

    public int getHealth() {
        return health;
    }

    public boolean isAlive() {
        return isAlive;
    }

    public int getPotions() {
        return potionCount;
    }

    public void takeDamage (int i) {
        health -= i;
    }

    public void gainPotion() {
        potionCount++;
    }

    public void drinkPotion() {

    }
}